package com.ruoqing.utils.common;

import java.util.Map;

/**
	* @author YaoXian
	* @title: StringUtils
	* @projectName ruoxi-blog
	* @description: 若兮微服务 -
	* @date 2020-12-25 23:29
	*/
public class StringUtils {
		
		public static String mapToString(Map<String,String> map){
				String[] strings = org.springframework.util.StringUtils.toStringArray(map.keySet());
				StringBuilder sb = new StringBuilder();
				if (strings.length > 0) {
						for (int i = 0; i < strings.length; i++) {
								if (i < strings.length - 1) {
										sb.append(strings[i] + ",");
								} else {
										sb.append(strings[i]);
								}
						}
				}
				return sb.toString();
		}
}
